package com.framework.modules.base.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.framework.common.utils.PageUtils;
import com.framework.common.utils.Query;

import com.framework.modules.base.dao.UserAttractsDao;
import com.framework.modules.base.entity.UserAttractsEntity;
import com.framework.modules.base.service.UserAttractsService;


@Service("userAttractsService")
public class UserAttractsServiceImpl extends ServiceImpl<UserAttractsDao, UserAttractsEntity> implements UserAttractsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<UserAttractsEntity> page = this.selectPage(
                new Query<UserAttractsEntity>(params).getPage(),
                new EntityWrapper<UserAttractsEntity>()
        );

        return new PageUtils(page);
    }

}
